// kX DSP Generated file

// 10kX microcode
// Patch name: 'LoudComp'

// NOTE: The present DSP microcode dump is protected by the 
// license agreement bundled with the appropriate software 
// package containing this microcode,
// regardless the particular copyright notice is present in the dump.


char *loudcomp_copyright = "townkat, 2006; updated by Russ";
char *loudcomp_engine = "kX";
char *loudcomp_comment = "";
char *loudcomp_created = "08/21/2006";
char *loudcomp_guid = "3e1bdfb8-b4c5-41ff-8b0c-82d9c529c079";

char *loudcomp_name = "Loudness Compensator";
int loudcomp_itramsize = 0,  loudcomp_xtramsize = 0;   

#ifndef KX_INTERNAL
	#define PVOL 0x8007
	#define R_LB1	0x8006      
	#define R_LA1	0x8005
	#define R_HB0	0x8003
	#define R_HB1	0x8004
	#define R_HA1	0x8002
	
	#define I_BYPS1	0x0006
	#define I_BYPS2	0x000d
	#define R_X		0x800b
	#define R_INL	0x4000
	#define R_INR	0x4001
#endif

dsp_register_info loudcomp_info[]={
	{ "inl",0x4000,0x7,0xffff,0x0 },
	{ "inr",0x4001,0x7,0xffff,0x0 },
	{ "outl",0x8000,0x8,0xffff,0x0 },
	{ "outr",0x8001,0x8,0xffff,0x0 },
	{ "ha1",0x8002,0x4,0xffff,0x0 },
	{ "hb0",0x8003,0x4,0xffff,0x20000000 },
	{ "hb1",0x8004,0x4,0xffff,0xf2dc4e03 },
	{ "la1",0x8005,0x4,0xffff,0x827d1f6e },
	{ "lb1",0x8006,0x4,0xffff,0x827d1f6e },
	{ "vol",0x8007,0x4,0xffff,0x7fffffff },
	{ "lstateleft",0x8008,0x1,0xffff,0x0 },
	{ "lstateright",0x8009,0x1,0xffff,0x0 },
	{ "hstateleft",0x800a,0x1,0xffff,0x0 },
	{ "hstateright",0x800b,0x1,0xffff,0x0 },
	{ "x",0x800c,0x3,0xffff,0x0 },
	{ "y",0x800d,0x3,0xffff,0x0 },
};

dsp_code loudcomp_code[]={
	{ 0x0,0x800d,0x8008,0x4000,0x204f },
	{ 0x0,0x8008,0x2040,0x4000,0x8006 },
	{ 0x1,0x8008,0x2056,0x800d,0x8005 },
	{ 0x0,0x800c,0x800a,0x800d,0x8003 },
	{ 0x0,0x800a,0x2046,0x800d,0x8004 },
	{ 0x1,0x800a,0x2056,0x800c,0x8002 },
	{ 0x4,0x800c,0x2040,0x800c,0x2044 },
	{ 0x0,0x8000,0x2040,0x800c,0x8007 },
	{ 0x0,0x800d,0x8009,0x4001,0x204f },
	{ 0x0,0x8009,0x2040,0x4001,0x8006 },
	{ 0x1,0x8009,0x2056,0x800d,0x8005 },
	{ 0x0,0x800c,0x800b,0x800d,0x8003 },
	{ 0x0,0x800b,0x2046,0x800d,0x8004 },
	{ 0x1,0x800b,0x2056,0x800c,0x8002 },
	{ 0x4,0x800c,0x2040,0x800c,0x2044 },
	{ 0x0,0x8001,0x2040,0x800c,0x8007 },
};

